package us.kg.kotoriforest.jdbc.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import us.kg.kotoriforest.jdbc.service.BookService;

/**
 * @author Kotori rotroutine@163.com
 * @since 2025/1/8
 */
@Controller
public class BookController {
    @Autowired
    private BookService bookService;

    public void buyBook(Integer bookId, Integer userId) {
        bookService.buyBook(bookId, userId);
    }
}
